<?php 

include_once ($templatepath."BoardThread.class.php");

class BoardForum
{

    var $children = array ();

    function BoardForum(& $data, & $threadTemplate)
    {
        if (is_array($data))
        {
            foreach ($data As $d)
            {
                $this->children[] = new BoardThread($d, array (), $threadTemplate, $threadTemplate);
            }
        }
    }

    function paint($mode)
    {
        for ($i = 0; $i < count($this->children); $i++)
        {
            $this->children[$i]->paint($mode);
        }
    }
}
?>